﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PC.AzureMultiApp.Core.Events;
using PC.AzureMultiApp.WebRoleMultiApp.Helpers;

namespace PC.AzureMultiApp.WebRoleMultiApp.Controllers
{
    [ValidaAdminRole()]  
    public class AzureEventController : Controller
    {
        public ActionResult AzureEvent()
        {
            return View(PC.AzureMultiApp.Core.Events.AzureEvent.GetEvents());
        }

        public ActionResult Clear()
        {
            PC.AzureMultiApp.Core.Events.AzureEvent.Clear();

            return RedirectToAction("AzureEvent", "AzureEvent");
        }  

    }
}
